﻿<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.net http://www.springframework.net/xsd/spring-objects.xsd">
  
  <!--****************************************Spring quartz Configuration Monitor*******************************************************************************-->
  <object id="JobDetailMonitor" type="Spring.Scheduling.Quartz.MethodInvokingJobDetailFactoryObject, Spring.Scheduling.Quartz">
    <property name="TargetObject" ref="QuartzFacade" />
    <property name="TargetMethod" value="Execute" />
    <property name="Concurrent" value="false" />
  </object>

  <object id="SimpleTriggerQuartzFacade" type="Spring.Scheduling.Quartz.SimpleTriggerObject, Spring.Scheduling.Quartz">
    <!-- see the example of method invoking job above -->
    <property name="jobDetail" ref="JobDetailMonitor" />
    <!-- 10 seconds -->
    <property name="StartDelay" value="5s" />
    <!-- repeat every 50 seconds -->
    <property name="RepeatInterval" value="1m" />
  </object>

  <object id="CronTriggerMonitor" type="Spring.Scheduling.Quartz.CronTriggerObject, Spring.Scheduling.Quartz">
    <property name="jobDetail" ref="JobDetailMonitor" />
    <!--run every minute-->
    <property name="CronExpressionString" value="* 1 * * * ? *" />
  </object>

  <!--****************************************spring quartz Configuration Manager*******************************************************************************-->
  <object type="Spring.Scheduling.Quartz.SchedulerFactoryObject, Spring.Scheduling.Quartz">
    <property name="triggers">
      <list>
        <ref object="SimpleTriggerQuartzFacade" />
      </list>
    </property>
  </object>
</objects>